<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-pragma">{-# LANGUAGE CPP #-}</span><span>
</span><span id="line-2"></span><span>
</span><span id="line-3"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-4"></span><span class="hs-comment">--</span><span>
</span><span id="line-5"></span><span class="hs-comment">-- Machine-specific parts of the register allocator</span><span>
</span><span id="line-6"></span><span class="hs-comment">--</span><span>
</span><span id="line-7"></span><span class="hs-comment">-- (c) The University of Glasgow 1996-2004</span><span>
</span><span id="line-8"></span><span class="hs-comment">--</span><span>
</span><span id="line-9"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-10"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">GHC.CmmToAsm.PPC.RegInfo</span><span> </span><span class="hs-special">(</span><span>
</span><span id="line-11"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#JumpDest"><span class="hs-identifier">JumpDest</span></a></span><span class="hs-special">(</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#DestBlockId"><span class="hs-identifier">DestBlockId</span></a></span><span> </span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#getJumpDestBlockId"><span class="hs-identifier">getJumpDestBlockId</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-12"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#canShortcut"><span class="hs-identifier">canShortcut</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-13"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#shortcutJump"><span class="hs-identifier">shortcutJump</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-14"></span><span>
</span><span id="line-15"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#shortcutStatics"><span class="hs-identifier">shortcutStatics</span></a></span><span>
</span><span id="line-16"></span><span class="hs-special">)</span><span>
</span><span id="line-17"></span><span>
</span><span id="line-18"></span><span class="hs-keyword">where</span><span class="hs-cpp">

#include &quot;HsVersions.h&quot;
</span><span>
</span><span id="line-22"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Prelude.html"><span class="hs-identifier">GHC.Prelude</span></a></span><span>
</span><span id="line-23"></span><span>
</span><span id="line-24"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.PPC.Instr.html"><span class="hs-identifier">GHC.CmmToAsm.PPC.Instr</span></a></span><span>
</span><span id="line-25"></span><span>
</span><span id="line-26"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Cmm.BlockId.html"><span class="hs-identifier">GHC.Cmm.BlockId</span></a></span><span>
</span><span id="line-27"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Cmm.html"><span class="hs-identifier">GHC.Cmm</span></a></span><span>
</span><span id="line-28"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Cmm.CLabel.html"><span class="hs-identifier">GHC.Cmm.CLabel</span></a></span><span>
</span><span id="line-29"></span><span>
</span><span id="line-30"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Types.Unique.html"><span class="hs-identifier">GHC.Types.Unique</span></a></span><span>
</span><span id="line-31"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html"><span class="hs-identifier">GHC.Utils.Outputable</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier">ppr</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier">text</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html#Outputable"><span class="hs-identifier">Outputable</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.Utils.Outputable.html#%3C%3E"><span class="hs-operator">(&lt;&gt;)</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-32"></span><span>
</span><span id="line-33"></span><span class="hs-keyword">data</span><span> </span><span id="JumpDest"><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#JumpDest"><span class="hs-identifier hs-var">JumpDest</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="DestBlockId"><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#DestBlockId"><span class="hs-identifier hs-var">DestBlockId</span></a></span></span><span> </span><span class="annot"><a href="GHC.Cmm.BlockId.html#BlockId"><span class="hs-identifier hs-type">BlockId</span></a></span><span>
</span><span id="line-34"></span><span>
</span><span id="line-35"></span><span class="hs-comment">-- Debug Instance</span><span>
</span><span id="line-36"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621681028040"><span class="annot"><a href="GHC.Utils.Outputable.html#Outputable"><span class="hs-identifier hs-type">Outputable</span></a></span><span> </span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#JumpDest"><span class="hs-identifier hs-type">JumpDest</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-37"></span><span>  </span><span id="local-6989586621681028036"><span class="annot"><span class="annottext">ppr :: JumpDest -&gt; SDoc
</span><a href="#local-6989586621681028036"><span class="hs-identifier hs-var hs-var hs-var hs-var">ppr</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#DestBlockId"><span class="hs-identifier hs-type">DestBlockId</span></a></span><span> </span><span id="local-6989586621681028035"><span class="annot"><span class="annottext">BlockId
</span><a href="#local-6989586621681028035"><span class="hs-identifier hs-var">bid</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#text"><span class="hs-identifier hs-var">text</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;jd&lt;blk&gt;:&quot;</span></span><span> </span><span class="annot"><span class="annottext">SDoc -&gt; SDoc -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#%3C%3E"><span class="hs-operator hs-var">&lt;&gt;</span></a></span><span> </span><span class="annot"><span class="annottext">BlockId -&gt; SDoc
forall a. Outputable a =&gt; a -&gt; SDoc
</span><a href="GHC.Utils.Outputable.html#ppr"><span class="hs-identifier hs-var">ppr</span></a></span><span> </span><span class="annot"><span class="annottext">BlockId
</span><a href="#local-6989586621681028035"><span class="hs-identifier hs-var">bid</span></a></span><span>
</span><span id="line-38"></span><span>
</span><span id="line-39"></span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#getJumpDestBlockId"><span class="hs-identifier hs-type">getJumpDestBlockId</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#JumpDest"><span class="hs-identifier hs-type">JumpDest</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="GHC.Cmm.BlockId.html#BlockId"><span class="hs-identifier hs-type">BlockId</span></a></span><span>
</span><span id="line-40"></span><span id="getJumpDestBlockId"><span class="annot"><span class="annottext">getJumpDestBlockId :: JumpDest -&gt; Maybe BlockId
</span><a href="GHC.CmmToAsm.PPC.RegInfo.html#getJumpDestBlockId"><span class="hs-identifier hs-var hs-var">getJumpDestBlockId</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#DestBlockId"><span class="hs-identifier hs-type">DestBlockId</span></a></span><span> </span><span id="local-6989586621681028034"><span class="annot"><span class="annottext">BlockId
</span><a href="#local-6989586621681028034"><span class="hs-identifier hs-var">bid</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">BlockId -&gt; Maybe BlockId
forall a. a -&gt; Maybe a
</span><a href="../../base/src/GHC.Maybe.html#Just"><span class="hs-identifier hs-var">Just</span></a></span><span> </span><span class="annot"><span class="annottext">BlockId
</span><a href="#local-6989586621681028034"><span class="hs-identifier hs-var">bid</span></a></span><span>
</span><span id="line-41"></span><span>
</span><span id="line-42"></span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#canShortcut"><span class="hs-identifier hs-type">canShortcut</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.PPC.Instr.html#Instr"><span class="hs-identifier hs-type">Instr</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#JumpDest"><span class="hs-identifier hs-type">JumpDest</span></a></span><span>
</span><span id="line-43"></span><span id="canShortcut"><span class="annot"><span class="annottext">canShortcut :: Instr -&gt; Maybe JumpDest
</span><a href="GHC.CmmToAsm.PPC.RegInfo.html#canShortcut"><span class="hs-identifier hs-var hs-var">canShortcut</span></a></span></span><span> </span><span class="annot"><span class="annottext">Instr
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Maybe JumpDest
forall a. Maybe a
</span><a href="../../base/src/GHC.Maybe.html#Nothing"><span class="hs-identifier hs-var">Nothing</span></a></span><span>
</span><span id="line-44"></span><span>
</span><span id="line-45"></span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#shortcutJump"><span class="hs-identifier hs-type">shortcutJump</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Cmm.BlockId.html#BlockId"><span class="hs-identifier hs-type">BlockId</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#JumpDest"><span class="hs-identifier hs-type">JumpDest</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.PPC.Instr.html#Instr"><span class="hs-identifier hs-type">Instr</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.PPC.Instr.html#Instr"><span class="hs-identifier hs-type">Instr</span></a></span><span>
</span><span id="line-46"></span><span id="shortcutJump"><span class="annot"><span class="annottext">shortcutJump :: (BlockId -&gt; Maybe JumpDest) -&gt; Instr -&gt; Instr
</span><a href="GHC.CmmToAsm.PPC.RegInfo.html#shortcutJump"><span class="hs-identifier hs-var hs-var">shortcutJump</span></a></span></span><span> </span><span class="annot"><span class="annottext">BlockId -&gt; Maybe JumpDest
</span><span class="hs-identifier">_</span></span><span> </span><span id="local-6989586621681028033"><span class="annot"><span class="annottext">Instr
</span><a href="#local-6989586621681028033"><span class="hs-identifier hs-var">other</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Instr
</span><a href="#local-6989586621681028033"><span class="hs-identifier hs-var">other</span></a></span><span>
</span><span id="line-47"></span><span>
</span><span id="line-48"></span><span>
</span><span id="line-49"></span><span class="hs-comment">-- Here because it knows about JumpDest</span><span>
</span><span id="line-50"></span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#shortcutStatics"><span class="hs-identifier hs-type">shortcutStatics</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Cmm.BlockId.html#BlockId"><span class="hs-identifier hs-type">BlockId</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#JumpDest"><span class="hs-identifier hs-type">JumpDest</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Cmm.html#RawCmmStatics"><span class="hs-identifier hs-type">RawCmmStatics</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Cmm.html#RawCmmStatics"><span class="hs-identifier hs-type">RawCmmStatics</span></a></span><span>
</span><span id="line-51"></span><span id="shortcutStatics"><span class="annot"><span class="annottext">shortcutStatics :: (BlockId -&gt; Maybe JumpDest) -&gt; RawCmmStatics -&gt; RawCmmStatics
</span><a href="GHC.CmmToAsm.PPC.RegInfo.html#shortcutStatics"><span class="hs-identifier hs-var hs-var">shortcutStatics</span></a></span></span><span> </span><span id="local-6989586621681028032"><span class="annot"><span class="annottext">BlockId -&gt; Maybe JumpDest
</span><a href="#local-6989586621681028032"><span class="hs-identifier hs-var">fn</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Cmm.html#CmmStaticsRaw"><span class="hs-identifier hs-type">CmmStaticsRaw</span></a></span><span> </span><span id="local-6989586621681028030"><span class="annot"><span class="annottext">CLabel
</span><a href="#local-6989586621681028030"><span class="hs-identifier hs-var">lbl</span></a></span></span><span> </span><span id="local-6989586621681028029"><span class="annot"><span class="annottext">[CmmStatic]
</span><a href="#local-6989586621681028029"><span class="hs-identifier hs-var">statics</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-52"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CLabel -&gt; [CmmStatic] -&gt; RawCmmStatics
forall (rawOnly :: Bool).
CLabel -&gt; [CmmStatic] -&gt; GenCmmStatics rawOnly
</span><a href="GHC.Cmm.html#CmmStaticsRaw"><span class="hs-identifier hs-var">CmmStaticsRaw</span></a></span><span> </span><span class="annot"><span class="annottext">CLabel
</span><a href="#local-6989586621681028030"><span class="hs-identifier hs-var">lbl</span></a></span><span> </span><span class="annot"><span class="annottext">([CmmStatic] -&gt; RawCmmStatics) -&gt; [CmmStatic] -&gt; RawCmmStatics
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">(CmmStatic -&gt; CmmStatic) -&gt; [CmmStatic] -&gt; [CmmStatic]
forall a b. (a -&gt; b) -&gt; [a] -&gt; [b]
</span><a href="../../base/src/GHC.Base.html#map"><span class="hs-identifier hs-var">map</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">(BlockId -&gt; Maybe JumpDest) -&gt; CmmStatic -&gt; CmmStatic
</span><a href="GHC.CmmToAsm.PPC.RegInfo.html#shortcutStatic"><span class="hs-identifier hs-var">shortcutStatic</span></a></span><span> </span><span class="annot"><span class="annottext">BlockId -&gt; Maybe JumpDest
</span><a href="#local-6989586621681028032"><span class="hs-identifier hs-var">fn</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">[CmmStatic]
</span><a href="#local-6989586621681028029"><span class="hs-identifier hs-var">statics</span></a></span><span>
</span><span id="line-53"></span><span>  </span><span class="hs-comment">-- we need to get the jump tables, so apply the mapping to the entries</span><span>
</span><span id="line-54"></span><span>  </span><span class="hs-comment">-- of a CmmData too.</span><span>
</span><span id="line-55"></span><span>
</span><span id="line-56"></span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#shortcutLabel"><span class="hs-identifier hs-type">shortcutLabel</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Cmm.BlockId.html#BlockId"><span class="hs-identifier hs-type">BlockId</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#JumpDest"><span class="hs-identifier hs-type">JumpDest</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Cmm.CLabel.html#CLabel"><span class="hs-identifier hs-type">CLabel</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Cmm.CLabel.html#CLabel"><span class="hs-identifier hs-type">CLabel</span></a></span><span>
</span><span id="line-57"></span><span id="shortcutLabel"><span class="annot"><span class="annottext">shortcutLabel :: (BlockId -&gt; Maybe JumpDest) -&gt; CLabel -&gt; CLabel
</span><a href="GHC.CmmToAsm.PPC.RegInfo.html#shortcutLabel"><span class="hs-identifier hs-var hs-var">shortcutLabel</span></a></span></span><span> </span><span id="local-6989586621681028026"><span class="annot"><span class="annottext">BlockId -&gt; Maybe JumpDest
</span><a href="#local-6989586621681028026"><span class="hs-identifier hs-var">fn</span></a></span></span><span> </span><span id="local-6989586621681028025"><span class="annot"><span class="annottext">CLabel
</span><a href="#local-6989586621681028025"><span class="hs-identifier hs-var">lab</span></a></span></span><span>
</span><span id="line-58"></span><span>  </span><span class="hs-glyph">|</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Just"><span class="hs-identifier hs-type">Just</span></a></span><span> </span><span id="local-6989586621681028024"><span class="annot"><span class="annottext">BlockId
</span><a href="#local-6989586621681028024"><span class="hs-identifier hs-var">blkId</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="annot"><span class="annottext">CLabel -&gt; Maybe BlockId
</span><a href="GHC.Cmm.CLabel.html#maybeLocalBlockLabel"><span class="hs-identifier hs-var">maybeLocalBlockLabel</span></a></span><span> </span><span class="annot"><span class="annottext">CLabel
</span><a href="#local-6989586621681028025"><span class="hs-identifier hs-var">lab</span></a></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(BlockId -&gt; Maybe JumpDest) -&gt; BlockId -&gt; CLabel
</span><a href="GHC.CmmToAsm.PPC.RegInfo.html#shortBlockId"><span class="hs-identifier hs-var">shortBlockId</span></a></span><span> </span><span class="annot"><span class="annottext">BlockId -&gt; Maybe JumpDest
</span><a href="#local-6989586621681028026"><span class="hs-identifier hs-var">fn</span></a></span><span> </span><span class="annot"><span class="annottext">BlockId
</span><a href="#local-6989586621681028024"><span class="hs-identifier hs-var">blkId</span></a></span><span>
</span><span id="line-59"></span><span>  </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Bool
</span><a href="../../base/src/GHC.Base.html#otherwise"><span class="hs-identifier hs-var">otherwise</span></a></span><span>                              </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CLabel
</span><a href="#local-6989586621681028025"><span class="hs-identifier hs-var">lab</span></a></span><span>
</span><span id="line-60"></span><span>
</span><span id="line-61"></span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#shortcutStatic"><span class="hs-identifier hs-type">shortcutStatic</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Cmm.BlockId.html#BlockId"><span class="hs-identifier hs-type">BlockId</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#JumpDest"><span class="hs-identifier hs-type">JumpDest</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Cmm.html#CmmStatic"><span class="hs-identifier hs-type">CmmStatic</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Cmm.html#CmmStatic"><span class="hs-identifier hs-type">CmmStatic</span></a></span><span>
</span><span id="line-62"></span><span id="shortcutStatic"><span class="annot"><span class="annottext">shortcutStatic :: (BlockId -&gt; Maybe JumpDest) -&gt; CmmStatic -&gt; CmmStatic
</span><a href="GHC.CmmToAsm.PPC.RegInfo.html#shortcutStatic"><span class="hs-identifier hs-var hs-var">shortcutStatic</span></a></span></span><span> </span><span id="local-6989586621681028021"><span class="annot"><span class="annottext">BlockId -&gt; Maybe JumpDest
</span><a href="#local-6989586621681028021"><span class="hs-identifier hs-var">fn</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Cmm.html#CmmStaticLit"><span class="hs-identifier hs-type">CmmStaticLit</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Cmm.Expr.html#CmmLabel"><span class="hs-identifier hs-type">CmmLabel</span></a></span><span> </span><span id="local-6989586621681028018"><span class="annot"><span class="annottext">CLabel
</span><a href="#local-6989586621681028018"><span class="hs-identifier hs-var">lab</span></a></span></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-63"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CmmLit -&gt; CmmStatic
</span><a href="GHC.Cmm.html#CmmStaticLit"><span class="hs-identifier hs-var">CmmStaticLit</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">CLabel -&gt; CmmLit
</span><a href="GHC.Cmm.Expr.html#CmmLabel"><span class="hs-identifier hs-var">CmmLabel</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">(BlockId -&gt; Maybe JumpDest) -&gt; CLabel -&gt; CLabel
</span><a href="GHC.CmmToAsm.PPC.RegInfo.html#shortcutLabel"><span class="hs-identifier hs-var">shortcutLabel</span></a></span><span> </span><span class="annot"><span class="annottext">BlockId -&gt; Maybe JumpDest
</span><a href="#local-6989586621681028021"><span class="hs-identifier hs-var">fn</span></a></span><span> </span><span class="annot"><span class="annottext">CLabel
</span><a href="#local-6989586621681028018"><span class="hs-identifier hs-var">lab</span></a></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-64"></span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#shortcutStatic"><span class="hs-identifier hs-var">shortcutStatic</span></a></span><span> </span><span id="local-6989586621681028017"><span class="annot"><span class="annottext">BlockId -&gt; Maybe JumpDest
</span><a href="#local-6989586621681028017"><span class="hs-identifier hs-var">fn</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Cmm.html#CmmStaticLit"><span class="hs-identifier hs-type">CmmStaticLit</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Cmm.Expr.html#CmmLabelDiffOff"><span class="hs-identifier hs-type">CmmLabelDiffOff</span></a></span><span> </span><span id="local-6989586621681028015"><span class="annot"><span class="annottext">CLabel
</span><a href="#local-6989586621681028015"><span class="hs-identifier hs-var">lbl1</span></a></span></span><span> </span><span id="local-6989586621681028014"><span class="annot"><span class="annottext">CLabel
</span><a href="#local-6989586621681028014"><span class="hs-identifier hs-var">lbl2</span></a></span></span><span> </span><span id="local-6989586621681028013"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621681028013"><span class="hs-identifier hs-var">off</span></a></span></span><span> </span><span id="local-6989586621681028012"><span class="annot"><span class="annottext">Width
</span><a href="#local-6989586621681028012"><span class="hs-identifier hs-var">w</span></a></span></span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-65"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CmmLit -&gt; CmmStatic
</span><a href="GHC.Cmm.html#CmmStaticLit"><span class="hs-identifier hs-var">CmmStaticLit</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">CLabel -&gt; CLabel -&gt; Int -&gt; Width -&gt; CmmLit
</span><a href="GHC.Cmm.Expr.html#CmmLabelDiffOff"><span class="hs-identifier hs-var">CmmLabelDiffOff</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">(BlockId -&gt; Maybe JumpDest) -&gt; CLabel -&gt; CLabel
</span><a href="GHC.CmmToAsm.PPC.RegInfo.html#shortcutLabel"><span class="hs-identifier hs-var">shortcutLabel</span></a></span><span> </span><span class="annot"><span class="annottext">BlockId -&gt; Maybe JumpDest
</span><a href="#local-6989586621681028017"><span class="hs-identifier hs-var">fn</span></a></span><span> </span><span class="annot"><span class="annottext">CLabel
</span><a href="#local-6989586621681028015"><span class="hs-identifier hs-var">lbl1</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">CLabel
</span><a href="#local-6989586621681028014"><span class="hs-identifier hs-var">lbl2</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621681028013"><span class="hs-identifier hs-var">off</span></a></span><span> </span><span class="annot"><span class="annottext">Width
</span><a href="#local-6989586621681028012"><span class="hs-identifier hs-var">w</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-66"></span><span>        </span><span class="hs-comment">-- slightly dodgy, we're ignoring the second label, but this</span><span>
</span><span id="line-67"></span><span>        </span><span class="hs-comment">-- works with the way we use CmmLabelDiffOff for jump tables now.</span><span>
</span><span id="line-68"></span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#shortcutStatic"><span class="hs-identifier hs-var">shortcutStatic</span></a></span><span> </span><span class="annot"><span class="annottext">BlockId -&gt; Maybe JumpDest
</span><span class="hs-identifier">_</span></span><span> </span><span id="local-6989586621681028011"><span class="annot"><span class="annottext">CmmStatic
</span><a href="#local-6989586621681028011"><span class="hs-identifier hs-var">other_static</span></a></span></span><span>
</span><span id="line-69"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CmmStatic
</span><a href="#local-6989586621681028011"><span class="hs-identifier hs-var">other_static</span></a></span><span>
</span><span id="line-70"></span><span>
</span><span id="line-71"></span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#shortBlockId"><span class="hs-identifier hs-type">shortBlockId</span></a></span><span>
</span><span id="line-72"></span><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Cmm.BlockId.html#BlockId"><span class="hs-identifier hs-type">BlockId</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#JumpDest"><span class="hs-identifier hs-type">JumpDest</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-73"></span><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Cmm.BlockId.html#BlockId"><span class="hs-identifier hs-type">BlockId</span></a></span><span>
</span><span id="line-74"></span><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Cmm.CLabel.html#CLabel"><span class="hs-identifier hs-type">CLabel</span></a></span><span>
</span><span id="line-75"></span><span>
</span><span id="line-76"></span><span id="shortBlockId"><span class="annot"><span class="annottext">shortBlockId :: (BlockId -&gt; Maybe JumpDest) -&gt; BlockId -&gt; CLabel
</span><a href="GHC.CmmToAsm.PPC.RegInfo.html#shortBlockId"><span class="hs-identifier hs-var hs-var">shortBlockId</span></a></span></span><span> </span><span id="local-6989586621681028010"><span class="annot"><span class="annottext">BlockId -&gt; Maybe JumpDest
</span><a href="#local-6989586621681028010"><span class="hs-identifier hs-var">fn</span></a></span></span><span> </span><span id="local-6989586621681028009"><span class="annot"><span class="annottext">BlockId
</span><a href="#local-6989586621681028009"><span class="hs-identifier hs-var">blockid</span></a></span></span><span> </span><span class="hs-glyph">=</span><span>
</span><span id="line-77"></span><span>   </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">BlockId -&gt; Maybe JumpDest
</span><a href="#local-6989586621681028010"><span class="hs-identifier hs-var">fn</span></a></span><span> </span><span class="annot"><span class="annottext">BlockId
</span><a href="#local-6989586621681028009"><span class="hs-identifier hs-var">blockid</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-78"></span><span>      </span><span class="annot"><span class="annottext">Maybe JumpDest
</span><a href="../../base/src/GHC.Maybe.html#Nothing"><span class="hs-identifier hs-var">Nothing</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Unique -&gt; CLabel
</span><a href="GHC.Cmm.CLabel.html#mkLocalBlockLabel"><span class="hs-identifier hs-var">mkLocalBlockLabel</span></a></span><span> </span><span class="annot"><span class="annottext">Unique
</span><a href="#local-6989586621681028007"><span class="hs-identifier hs-var">uq</span></a></span><span>
</span><span id="line-79"></span><span>      </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Just"><span class="hs-identifier hs-type">Just</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.CmmToAsm.PPC.RegInfo.html#DestBlockId"><span class="hs-identifier hs-type">DestBlockId</span></a></span><span> </span><span id="local-6989586621681028006"><span class="annot"><span class="annottext">BlockId
</span><a href="#local-6989586621681028006"><span class="hs-identifier hs-var">blockid'</span></a></span></span><span class="hs-special">)</span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">(BlockId -&gt; Maybe JumpDest) -&gt; BlockId -&gt; CLabel
</span><a href="GHC.CmmToAsm.PPC.RegInfo.html#shortBlockId"><span class="hs-identifier hs-var">shortBlockId</span></a></span><span> </span><span class="annot"><span class="annottext">BlockId -&gt; Maybe JumpDest
</span><a href="#local-6989586621681028010"><span class="hs-identifier hs-var">fn</span></a></span><span> </span><span class="annot"><span class="annottext">BlockId
</span><a href="#local-6989586621681028006"><span class="hs-identifier hs-var">blockid'</span></a></span><span>
</span><span id="line-80"></span><span>   </span><span class="hs-keyword">where</span><span> </span><span id="local-6989586621681028007"><span class="annot"><span class="annottext">uq :: Unique
</span><a href="#local-6989586621681028007"><span class="hs-identifier hs-var hs-var">uq</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">BlockId -&gt; Unique
forall a. Uniquable a =&gt; a -&gt; Unique
</span><a href="GHC.Types.Unique.html#getUnique"><span class="hs-identifier hs-var">getUnique</span></a></span><span> </span><span class="annot"><span class="annottext">BlockId
</span><a href="#local-6989586621681028009"><span class="hs-identifier hs-var">blockid</span></a></span><span>
</span><span id="line-81"></span></pre></body></html>